package com.atchangsha.system.config;

import com.atchangsha.system.constant.MQConstant;
import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqConfig {
    @Bean
    public DirectExchange commonExchange(){
        return new DirectExchange(MQConstant.COMMON_EXCHANGE);
    }
}
